(c-indent-line): Call c-backward-to-start-of-if
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Jun 1993 19:16:02 +0000 (19:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Jun 1993 19:16:02 +0000 (19:16 +0000)
in the case of else following a close brace.

lisp/progmodes/c-mode.el

index 8c32229a2996e4a8af6f37865fa77bf924ab450a..198e430f60a136d2be2bd582cd2cf7384c7e6755 100644 (file)
@@ -544,6 +544,7 @@ Return the amount the indentation changed by."
                  (setq indent (save-excursion
                                 (forward-char)
                                 (backward-sexp)
+                                (c-backward-to-start-of-if)
                                 (current-indentation))))
                 ((and (looking-at "while\\b")
                       (save-excursion